﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace PasteLoggerBoard.usermodels
{

    ///<summary>
    ///推送对象
    ///</summary>
    public class WebHookerAddDto
    {

        ///<summary>
        ///WebHook名称 16
        ///</summary>
        [MaxLength(16)]
        public string Name { get; set; }

        ///<summary>
        ///WebHook推送地址 512
        ///</summary>
        [MaxLength(512)]
        public string Url { get; set; }

        ///<summary>
        ///钉钉 企业微信 飞书 8
        ///</summary>
        [MaxLength(8)]
        public string WebType { get; set; }

        ///<summary>
        ///状态
        ///</summary>

        public bool IsEnable { get; set; }
    }
    ///<summary>
    ///推送对象
    ///</summary>
    public class WebHookerDto : EntityDto<int>
    {

        ///<summary>
        ///WebHook名称 16
        ///</summary>
        [MaxLength(16)]
        public string Name { get; set; }

        ///<summary>
        ///WebHook推送地址 512
        ///</summary>
        [MaxLength(512)]
        public string Url { get; set; }

        ///<summary>
        ///钉钉 企业微信 飞书 8
        ///</summary>
        [MaxLength(8)]
        public string WebType { get; set; }

        ///<summary>
        ///状态
        ///</summary>

        public bool IsEnable { get; set; }
    }
    ///<summary>
    ///推送对象
    ///</summary>
    public class WebHookerListDto : EntityDto<int>
    {

        ///<summary>
        ///WebHook名称 16
        ///</summary>
        [MaxLength(16)]
        public string Name { get; set; }

        ///<summary>
        ///WebHook推送地址 512
        ///</summary>
        [MaxLength(512)]
        public string Url { get; set; }

        ///<summary>
        ///钉钉 企业微信 飞书 8
        ///</summary>
        [MaxLength(8)]
        public string WebType { get; set; }

        ///<summary>
        ///状态
        ///</summary>

        public bool IsEnable { get; set; }
    }

    ///<summary>
    ///推送对象
    ///</summary>
    public class WebHookerUpdateDto : EntityDto<int>
    {

        ///<summary>
        ///WebHook名称 16
        ///</summary>
        [MaxLength(16)]
        public string Name { get; set; }

        ///<summary>
        ///WebHook推送地址 512
        ///</summary>
        [MaxLength(512)]
        public string Url { get; set; }

        ///<summary>
        ///钉钉 企业微信 飞书 8
        ///</summary>
        [MaxLength(8)]
        public string WebType { get; set; }

        ///<summary>
        ///状态
        ///</summary>

        public bool IsEnable { get; set; }
    }
}
